(function () {
    if (typeof EventTarget !== 'undefined') {
      const func = EventTarget.prototype.addEventListener;
      EventTarget.prototype.addEventListener = function (type, fn, capture) {
        this.func = func;
        if (typeof capture !== 'boolean') {
          capture = capture || {};
          capture.passive = false;
        }
        this.func(type, fn, capture);
      };
    }
  
  ————————————————
  
                              版权声明：本文为博主原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接和本声明。
                          
  原文链接：https://blog.csdn.net/bingmoujs/article/details/137672406